import { basicIp, newHttpService } from "../../../../../api/http";
import { ITlplTLanePlcParamUpdateParams, ITlplTPlcOffsetAddParams } from "./type";

// 编辑PLC参数设置
export const postTlplTLanePlcParamUpdate = (data: ITlplTLanePlcParamUpdateParams) => {
    const url = basicIp + '/tlpl/t-lane/plcParamUpdate';
    return newHttpService.postData(url, data);
}
// 查询偏移量
export const postTlplTLaneQueryOffset = (data: {laneId: string}) => {
    const url = basicIp + '/tlpl/t-lane/queryOffset';
    return newHttpService.postData(url, data); 
}

// 查询PLC参数设置
export const getTlplTLaneQueryPlcParam = (data: {laneId: string}) => {
    const url = basicIp + '/tlpl/t-lane/queryPlcParam';
    return newHttpService.getData(url, data);
}
// 添加偏移量
export const postTlplTPlcOffsetAdd= (data: ITlplTPlcOffsetAddParams) => {
    const url = basicIp + '/tlpl/t-plc-offset/add';
    return newHttpService.postData(url, data);
}
// 查询偏移量
export const getTlplTPlcOffsetQueryByLaneId = (data: {laneId: string}) => {
    const url = basicIp + '/tlpl/t-plc-offset/queryByLaneId';
    return newHttpService.getData(url, data);
}